/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xib.core;

import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;

/**
 *
 * @author xavierds
 */
final class FileHandler {

    private ZipFile zp;

    private String pathname;

    FileHandler(String pathname) throws IOException{
        this.pathname = pathname;
        zp = new ZipFile(pathname);
    }

    InputStream getEntry(String pathname) throws IOException{
        ZipEntry entry = new ZipEntry(pathname);
        return zp.getInputStream(entry);
    }

    String getFilePathname(){
        return pathname;
    }
    
}
